//
//  PersonAbstractModelStarredchannels.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/09/16
//  Copyright (c) ltq. All rights reserved.
//

#import "PersonAbstractModelStarredchannels.h"
#import "PersonAbstractModelChannel.h"

@implementation PersonAbstractModelStarredchannels

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"channel"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            PersonAbstractModelChannel *channel = [PersonAbstractModelChannel modelWithDic:dic];
            [array addObject:channel];
        }
        _channel = array;
    }
}


+ (NSDictionary *)objectClassInArray{
    return @{@"channel" : [PersonAbstractModelChannel class]};
}

@end
